	package org.kisekiproject.pages.input
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.text.TextField;
	
	import org.kisekiproject.events.KisekiEvent;
	
	public class Input extends MovieClip
	{
		public var inputField:TextField;

		public var val:Number=.3;

		public function Input()
		{
			super();
			inputField.addEventListener(Event.CHANGE,onInputChange);
		}
		
		protected function onInputChange(event:Event):void
		{
			val=Number(inputField.text);
			dispatchEvent(new KisekiEvent(KisekiEvent.OUTPUT_CHANGE));
		}
	}
}